package com.eight.cloud.openfeign.admin.api;

import com.eight.cloud.openfeign.admin.vo.TenantVo;
import com.eight.cloud.openfeign.admin.factory.TenantFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName: TenantClient
 * @Author: TXC
 * @Date: 2024-11-15 14:37
 **/
@FeignClient(value = "cloud-admin", contextId = "tenantClient", fallbackFactory = TenantFallbackFactory.class)
public interface TenantClient {
    @GetMapping("/tenant/querySecret")
    TenantVo querySecretKey(@RequestParam("secretId") String secretId);

    @GetMapping("/tenant/{uuid}")
    TenantVo query(@PathVariable("uuid") String uuid);
}
